﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Giohang.aspx.cs" Inherits="Web.Giohang" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script src="JS/JScript1.js" type="text/javascript"></script>
<div class="c_center">
<div style="text-align:center; color:#521422; padding-top:5px; border-bottom:1px solid #CCDEEE;">
<h2>Giỏ hàng của bạn</h2>
</div>
<div style="text-align:left">
<asp:Label ID="Lbthongbao" runat="server" ForeColor="Red" Text=""></asp:Label>
</div>
<center>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
        CellPadding="3" Width="560px">
        <RowStyle ForeColor="#000066" />
        <Columns>
             <asp:TemplateField>
            <HeaderTemplate>
            <asp:CheckBox ID="chkHead" runat="server"
            onclick="changeCheckState(this)" />
            </HeaderTemplate>
            <ItemTemplate>
            <asp:CheckBox ID="chkCheckItem" runat="server" />
            </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="ID" HeaderText="Mã sản phẩm" />
            <asp:BoundField DataField="DisplayName" HeaderText="Tên sản phẩm" />
             <asp:TemplateField HeaderText="Số lượng">
                 <ItemTemplate>
                     <asp:TextBox ID="txtSoLuong" Width="40px" runat="server" Text='<%# Bind("Quantity") %>'></asp:TextBox>
                 </ItemTemplate>
             </asp:TemplateField>
            <asp:BoundField DataField="Price" HeaderText="Đơn giá sản phẩm" />
            <asp:BoundField DataField="Total" HeaderText="Tổng thành tiền" />
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
    </center>
        <asp:Panel ID="Panel1" runat="server">
  
<table style="width: 560px">
<div style="background-color:Silver;">
<tr>
<td colspan="4" align="right" 
style=" background-color:Silver;color:Red; font-weight:bold; font-size:14px; height: 20px;">
<div style=" float:left; color:Black; width: 436px;">Tổng: </div>
<asp:Label ID="Lbtongtien" runat="server" Text=""></asp:Label>Đ
</td>
</tr>
</div>
<tr>
<td align="left">

    <asp:Button ID="btnxoa" runat="server" Text="Xóa" onclick="btnxoa_Click" />

</td>
 <td align="right">
     <asp:Button ID="btntieptuc" runat="server" Text="Tiếp tục mua hàng" 
         onclick="btntieptuc_Click" />
 </td>
 <td>
     <asp:Button ID="Btncapnhat" runat="server" Text="Cập nhật số lượng" 
         onclick="Btncapnhat_Click" />
 </td>
  <td align="right"> 
      <asp:Button ID="btnthanhtoan" runat="server" Text="Thanh toán" 
          onclick="btnthanhtoan_Click" />
 </td>
</tr>
</table>
  </asp:Panel>
  <div style="text-align:left">
    <asp:Label ID="Lbxoa" ForeColor="Red" runat="server" Text=""></asp:Label>
</div>
<div style="text-align:right">
 <asp:Label ID="Lbthanhtoan" ForeColor="Red" runat="server" Text=""></asp:Label>
</div>


</div>

</asp:Content>
